//Copyright 2010 Balazs Keri, Imre Keri
//
//This file is part of FireworksCreator.
//
//FireworksCreator is free software: you can redistribute it and/or modify
//it under the terms of the GNU General Public License as published by
//the Free Software Foundation, either version 3 of the License, or
//(at your option) any later version.
//
//FireworksCreator is distributed in the hope that it will be useful,
//but WITHOUT ANY WARRANTY; without even the implied warranty of
//MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
//GNU General Public License for more details.
//
//You should have received a copy of the GNU General Public License
//along with FireworksCreator.  If not, see <http://www.gnu.org/licenses/>.
//
#ifndef _EVENTFORWARDER_H
#define _EVENTFORWARDER_H
#include <QObject>
class AttrEvent;
class View;
class Primitive;
class PrimitiveGroup;
//
class EventForwarder : public QObject {
   Q_OBJECT
   Q_DISABLE_COPY(EventForwarder)
   //constructor,destructor
public:
   EventForwarder(View *target,QObject *parent=0);
   ~EventForwarder();
private slots:
   void recv_attr_event(AttrEvent *event);
   void recv_pre_primitive(const Primitive &prim);
   void recv_post_primitive(const Primitive &prim);
   void recv_fail_primitive(const Primitive &prim);
   void recv_post_primitive_group(const PrimitiveGroup &prim_grp);
private:
   View *target;
};
#endif /* _EVENTFORWARDER_H */
